package com.jacklin.market.coupon.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jacklin.market.coupon.domain.UserCoupon;
import org.jacklin.common.api.vo.Result;

/**
 * 营销-用户优惠券服务层
 *
 * @author: jacklin
 * @since: 2022/3/26 15:57
 */
public interface UserCouponService extends IService<UserCoupon> {

    /**
     * @describe: 校验该用户优惠券的正确性
     * @author: jacklin
     * @date: 2022/3/28
     **/
    Result<?> checkUserCoupon(String couponCode);

    /**
     * @describe: 更新用户优惠券使用状态
     * @author: jacklin
     * @date: 2022/3/28
     **/
    boolean updateUserCouponStatus(String userId, String couponCode);
}
